package com.jxbeidou.system.menu.convert;

import com.jxbeidou.system.menu.entity.PermissionDO;
import com.jxbeidou.system.menu.vo.PermissionVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* 菜单表
*
* @author 杜晓祥 
* @since 1.0.0 2023-12-14
*/
@Mapper
public interface PermissionConvert {
    PermissionConvert INSTANCE = Mappers.getMapper(PermissionConvert.class);

    PermissionDO convert(PermissionVO vo);

    PermissionVO convert(PermissionDO entity);

    List<PermissionVO> convertList(List<PermissionDO> list);

}